package logmanager.proxy;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import logmanager.job.LogManager;

//classe de lancement de serveur RMI
public class Load {

	public Load() {
		if (System.getSecurityManager() == null)
            System.setProperty("java.security.policy", "setting/allpolicy.txt");
		
		LogManager manager;
		try {
			manager = new LogManager();
			Registry rm=LocateRegistry.createRegistry(1098);
			rm.rebind("IDys", manager);
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		new Load();
	}
}
